<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
 xmlns="http://www.w3.org/1999/xhtml"
 xmlns:xh="http://www.w3.org/1999/xhtml"
 xmlns:xf="http://www.w3.org/2002/xforms"
 xmlns:ev="http://www.w3.org/2001/xml-events"
 xmlns:js="http://www.formsplayer.com/inlineScript"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
	<head>
		<title>Update Twitter</title>

		<script type="text/javascript" src="gadgets/common/scripts/events.js">/**/</script>

		<script type="text/javascript" src="gadgets/common/scripts/style.js">/**/</script>

		<link rel="stylesheet" href="gadgets/common/style/gadgets.css" type="text/css" media="screen" />

		<link rel="stylesheet" href="help.css" type="text/css" media="screen" />

		<xf:model id="mdl-gadgets">
			<xf:instance id="inst-gadget">
				<gadget xmlns="">
					<type />

					<value />
				</gadget>
			</xf:instance>

			<xf:instance id="inst-show">
				<show xmlns="">true</show>
			</xf:instance>

			<xf:instance id="inst-scripts">
				<scripts xmlns="">
					<retval />
				</scripts>
			</xf:instance>

			<xf:bind id="script-retval" nodeset="instance('inst-scripts')/retval" />

			<xf:instance id="inst-help" src="help-default.xhtml" />

			<xf:submission id="sbm-help-load" resource="cookie:hubbub-0.5/help.xhtml" method="get" replace="instance" instance="inst-help" mode="synchronous" validate="false" serialize="false" />

			<xf:submission id="sbm-help-save" resource="cookie:hubbub-0.5/help.xhtml" method="put" replace="none" ref="instance('inst-help')" mode="synchronous" validate="false" relevant="false" />

			<xf:action ev:event="xforms-ready">
				<xf:setvalue bind="script-retval" value="js:STYLE_set('originptr_t', 'display', 'block')" />

				<xf:setvalue bind="script-retval" value="js:EVENTS_initUpdateHandler()" />

				<xf:send submission="sbm-help-load" />
			</xf:action>

			<xf:action ev:observer="sbm-help-load" ev:event="xforms-submit-error">
				<xf:setvalue bind="script-retval" value="js:EVENTS_send('backplane-ready')" />
			</xf:action>

			<xf:action ev:observer="sbm-help-load" ev:event="xforms-submit-done">
				<xf:setvalue bind="script-retval" value="js:EVENTS_send('backplane-ready')" />
			</xf:action>

			<xf:action ev:event="backplane-update">
				<xf:action if="instance('inst-help')/xh:body/*[contains(@typeof, 'hubbub:help')][@id = instance('inst-gadget')/value]/*[@property = 'hubbub:inhibit'] = 'false' and instance('inst-show') = 'true'">
					<xf:setvalue ref="instance('inst-show')" value="'false'" />

					<xf:setvalue bind="script-retval" value="js:EVENTS_send('backplane-show')" />
				</xf:action>

				<xf:setvalue if="instance('inst-help')/xh:body/*[contains(@typeof, 'hubbub:help')][@id = instance('inst-gadget')/value]/*[@property = 'hubbub:inhibit'] = 'true'" bind="script-retval" value="js:EVENTS_send('backplane-close')" />
			</xf:action>
		</xf:model>
	</head>

	<body ondragenter="event.returnValue = false;" ondragover="event.returnValue = false;" ondrop="event.returnValue = false;">
		<div class="buffer-top">
			<div class="origin-pointer" id="originptr_t"></div>
		</div>

		<span class="buffer-left">
			<div class="origin-pointer" id="originptr_l"></div>
		</span>

		<span class="gadget">
			<xf:trigger appearance="minimal">
				<xf:label class="close-button">
					<img src="gadgets/common/images/button_fg.png" alt="Close" class="button16" />
				</xf:label>

				<xf:setvalue ev:event="DOMActivate" bind="script-retval" value="js:EVENTS_send('backplane-close')" />
			</xf:trigger>

			<h1>
				<img src="images/rose-24.png" alt="Hubbub" class="service-icon"/>

				<xf:output ref="instance('inst-help')/xh:body/*[contains(@typeof, 'hubbub:help')][@id = instance('inst-gadget')/value]/*[@property = 'hubbub:title']" />
			</h1>

			<p class="body">
				<xf:output ref="instance('inst-help')/xh:body/*[contains(@typeof, 'hubbub:help')][@id = instance('inst-gadget')/value]/*[@property = 'hubbub:body']" />
			</p>

			<p class="inhibit">
				<xf:input ref="instance('inst-help')/xh:body/*[contains(@typeof, 'hubbub:help')][@id = instance('inst-gadget')/value]/*[@property = 'hubbub:inhibit']">
					<xf:label>
						Don't show this message again.
					</xf:label>

					<xf:send ev:event="xforms-value-changed" submission="sbm-help-save" />
				</xf:input>
			</p>
		</span>
	</body>
</html>
